package com.lanyuan.controller.system;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.lanyuan.controller.index.BaseController;
import com.lanyuan.entity.UserFormMap;
import com.lanyuan.util.POIUtils;

@Controller
@RequestMapping("test")
public class Test extends BaseController {
	
	@RequestMapping("t1")
	public String exportExcel(HttpServletResponse response) {
		UserFormMap userFormMap = getFormMap(UserFormMap.class);
		List<UserFormMap> list = UserFormMap.mapper().findUserPage(userFormMap);
		POIUtils excelutil = new POIUtils();
		excelutil.exportToExcel(response, "test", list, UserFormMap.class, "test", list.size());
		return null;
	}

}
